package kevin.socketdemo;

import java.net.Socket;

public class SocketClientInstance {
    private int port;
    private String host;

    private Socket socket;


    public SocketClientInstance(int port, String host) {
        this.port = port;
        this.host = host;

    }


    public  Socket getSocketInstance()
    {

        try {

            socket =new Socket(host,port);
        }catch (Exception e)
        {

        }

        return socket;

    }



    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }


}
